<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<base href="<?php echo site_url('static/weixincard/'.$wechat['weixincardtpl'])?>/">
<meta name="format-detection" content="telephone=no" />
<title><?php echo $common[0]['title']?></title>
<meta name="keywords" content="" />
<meta itemprop="description" name="description" content="" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script src="<?php echo URLPRE?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/mobile/js/slider.js"></script>
</head>
<body>
<div class="global">
  <header class="header1">

    <div class="banner-micro banner1" id="banner">
      <div class="box" id="slider">
        <?php
        $tpl = <<<TEMPLATE
<ul style="height:13rem">
    {listinfo}<li><a href="{link}"> <img src="{pic}" alt="{title}"></a></li>{/listinfo}
</ul>
TEMPLATE;
        diy('weixin_card48', 'imagelist', $tpl);
        ?>
        <script type="text/javascript">
          $(function(){
            var slid = $("#slider").slider({
              loop: true
            });
          });
        </script>
      </div>
      <div class="m-b-icon"> </div>
    </div>

    <div class="micro-header">
      <div class="m-store-header ">
        <div class="m3_dizhi"> <?php echo substr(SITECITYNAME, 0, strpos(SITECITYNAME, '市'))?> </div>
        <div class="m3_search">
          <form action="<?php echo  site_url('/mobile/line/index/').'/'?>" method="get" id="searchForm" accept-charset="utf-8">
            <input name="keyword" type="text" class="msearchkey m3_search_txt" id="txtSearch" placeholder="想去哪儿,从这里开始...">
            <input type="hidden" name="cat_id" value="0" />
            <input type="submit" class="searchGo m3_search_btn" value="">
          </form>
        </div>
        <div class="m3_shezhi"><a href="<?php echo site_url('mobile/member/center');?>"><img src="images/shezhi.png" ></a></div>
      </div>
    </div>
  </header>
  <nav>
    <div class="micro-main-nav">
      <ul>
<!--        <li><a href="--><?php //echo site_url('mobile/line?cat_id=2');?><!--"><span><i>1</i></span><br />周边游</a></li>-->
<!--        <li><a href="--><?php //echo site_url('mobile/line?cat_id=1');?><!--"><span><i>2</i></span><br />国内游</a></li>-->
<!--        <li><a href="--><?php //echo site_url('mobile/line?cat_id=3');?><!--"><span><i>3</i></span><br />出境游</a></li>-->
<!--        <li><a href="--><?php //echo site_url('mobile/line?mark=尾单');?><!--"  ><span><i>4</i></span><br />尾单</a></li>-->
<!--        <li><a href="--><?php //echo $ctrip_flight;?><!--" ><span><i>5</i></span><br />机票</a></li>-->
<!--        <li><a href="--><?php //echo site_url('mobile/scenery/index');?><!--"><span><i>6</i></span><br />门票</a></li>-->
<!--        <li><a href="--><?php //echo $ctrip_hotel ;?><!--"                   ><span><i>7</i></span><br />酒店</a></li>-->
<!--        <li><a href="--><?php //echo site_url('mobile/trips/index?category=1');?><!--" ><span><i>8</i></span><br />美食</a></li>-->
<?php
$lazy = URLPRE.'static/template/xuzhou/mobile/images/huancun.jpg';
$menpiao = site_url('mobile/scenery/index');
$meishi = site_url('mobile/trips/index?category=1');
$weidan = site_url('mobile/line?mark=尾单');
$chujing = site_url('mobile/line?cat_id=3');
$zhoubian = site_url('mobile/line?cat_id=2');
$guonei = site_url('mobile/line?cat_id=1');
$jipiao2  = site_url('mobile/flight/index');
?>
          <?php
          $default = <<<HTML1
<li><a href="$zhoubian"><span><i>1</i></span><br />周边游</a></li>
<li><a href="$guonei"><span><i>2</i></span><br />国内游</a></li>
<li><a href="$chujing"><span><i>3</i></span><br />出境游</a></li>
<li><a href="$weidan"  ><span><i>4</i></span><br />尾单</a></li>
<li><a href="$ctrip_flight" ><span><i>5</i></span><br />机票</a></li>
<li><a href="$menpiao"><span><i>6</i></span><br />门票</a></li>
<li><a href="$ctrip_hotel" ><span><i>7</i></span><br />酒店</a></li>
<li><a href="$meishi" ><span><i>8</i></span><br />美食</a></li>
HTML1;

          $template = <<<HTML
{links}
<li><a href="{link}"><span><i>{index}</i></span><br />{name}</a></li>
{/links}
HTML;
          diy('mobile_index_top', 'fontlist', $template, 1, $default);
          ?>
      </ul>
    </div>
  </nav>
  <div class="bg_2"></div>
<style>

    .nav_1{ height:100px;
        width: 100%;
        position: relative;
        margin-bottom:10px;
    }
    .nav_1 a{
        border:3px solid;
        display:inline-block;
        width:33%;
        height:100px;
        text-align:center;
        line-height:90px;
        float:left;
        margin-left:0.5%;
    }
    .nav_1>a:nth-of-type(1){
        border-color:rgb(229,29,18);color:rgb(229,29,18);
        margin-left:0;
    }
    .nav_1>a:nth-of-type(2){
        border-color:rgb(247,185,54);color:rgb(247,185,54);
        height:45px;
        line-height:45px;
    }
    .nav_1>a:nth-of-type(3){
        border-color:rgb(26,165,158);color:rgb(26,165,158);
        height:45px;
        line-height:45px;
        position:absolute;
        left:33%;
        top:55px;
    }
    .nav_1>a:nth-of-type(4){
        border-color:rgb(40,122,190);color:rgb(40,122,190);
        float:right;
    }
</style>
  <div class="nav_1">
    <?php
        $TEMPLATE = <<<HTML
{links}
<a target="_blank"  href="{link}" rel="nofollow">{name}</a>
{/links}
HTML;
    diy('glass_index_fontlist_01', 'fontlist', $TEMPLATE, 1, '<a>季度热门</a><a>今日特惠</a><a>超值订票</a><a>团购推荐</a>');
  ?>

  </div>
  <section id="webContent">
    <div class="banner-micro" id="banner">
      <div class="box">
        <ul>
<?php
$TEMPLATE = <<<HTML
{listinfo}
<li><a href="{link}"><img src="{pic}" /></a></li>
{/listinfo}
HTML;
diy('glass_index_imagelist_02', 'imagelist', $TEMPLATE);
?>
        </ul>
      </div>
      <div class="m-b-icon"> </div>
    </div>
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line">
        <ul>
<!--          <li class="this"><a href="--><?php //echo site_url('mobile/line?cat_id=2')?><!--">周边</a></li>-->
<!--          <li><a href="--><?php //echo site_url('mobile/line?cat_id=1')?><!--">国内</a></li>-->
<!--          <li><a href="--><?php //echo site_url('mobile/line?cat_id=3')?><!--">出境</a></li>-->
        </ul>
        热门目的地
     </div>
      <div class="de-content">
        <div class="de_content_img_1">
<?php
$TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_1{background-image: url({pic})}</style>
<a href="{link}"><p>{title}</p><p style="color: #fff;font-size: 14px;margin-top: 0;margin-left: 4rem;">{sub_title}</p></a>
{/listinfo}
HTML;
diy('glass_index_imagelist_03', 'imagelist', $TEMPLATE);
?>
        </div>
        <div class="de_content_img_2">
<?php
$TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_2_{aindex}{background-image: url({pic})}</style>
<div class="de_content_img_2_{aindex}"> <a href="{link}"> <p>{title}  <font style="color: #fff;font-size:14px;width:100%;display:block">{sub_title}</font></p>  </a> </div>
{/listinfo}
HTML;
diy('glass_index_imagelist_05', 'imagelist', $TEMPLATE);
?>
        </div>
        <div class="de_content_img_3">
          <?php
          $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_3_{aindex}{background-image: url({pic})}</style>
<div class="de_content_img_3_{aindex}"> <a href="{link}"> <p>{title} <font style="color:#fff;font-size:14px;width:100%;display:block">{sub_title}</font></p>  </a> </div>
{/listinfo}
HTML;
          diy('glass_index_imagelist_06', 'imagelist', $TEMPLATE);
          ?>
        </div>
      </div>
    </div>
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line1">
        <ul>
          <li class="this1"><a href="<?php echo site_url('mobile/line?cat_id=2')?>">周边</a></li>
          <li><a href="<?php echo site_url('mobile/line?cat_id=1')?>">国内</a></li>
          <li><a href="<?php echo site_url('mobile/line?cat_id=3')?>">出境</a></li>
        </ul>
        热门线路 </div>
      <div class="de-content">
<?php

        $tpl = <<<HTML
{linelist}
<div class="content_xianlulist">
<a href="{link}">
    <div class="content_xianlulist_img"><img src="{line_thumb}" /></div>
    <div class="content_xianlulist_txt_1">
        <div class="content_xianlulist_txt_1_didian">{go_city}</div>
        <!--<div class="content_xianlulist_txt_1_qishi">{go_city}</div>-->
        <div class="content_xianlulist_txt_1_shichang">{short_name}</div>
    </div>
    <div class="content_xianlulist_txt_2">
    <div class="content_xianlulist_txt_2_mingcheng">{line_name}</div>
        <div class="content_xianlulist_txt_2_zhekou">{rebate}折</div>
        <div class="content_xianlulist_txt_2_jiage">{dollar}{low_price}<span>{dollarend}</span></div>
    </div>
    </a>
</div>
{/linelist}
HTML;
if(!empty($info['lines'])){
  $CI = new CI_Module();
  $CI->load->model('diy.diy_model');
  $CI->diy_model->__init_CI(1);
  echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
}else{
  diy('mobile_hotline_02', 'linelist', $tpl);
}
?>

<!--        <div class="content_xianlu_more">-->
<!--        	<a href="#">更多景点</a>-->
<!--        </div>-->
      </div>
    </div>
    <div class="hot-destination">
      <div class="de-title"> 目的地索引 </div>

      <div class="de-content">
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=2')?>'><span><i class='top'></i><i class="bottom"></i></span><br />周边</a></dt>
            <dd class="destination_zhoubian" style="min-height:90px">
              <?php
              $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
              diy('mobile_destination_01', 'fontlist', $tpl)?>
            </dd>
          </dl>
        </div>
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=1')?>'><span><i class='top'></i><i class="bottom"></i></span><br /> 国内</a></dt>
            <dd>
              <?php
              $tpl = <<<HTML
<ul>
{prolist}<li><a href='{mobile_link}&cat_id=1'>{name}</a></li>{/prolist}
</ul>
HTML;
              diy('mobile_destination_04', 'prolist', $tpl)?>
              <li class='click'><a href='<?php echo site_url('mobile/line?cat_id=1')?>' class='hasmore'><img src="<?php echo URLPRE?>static/template/xuzhou/mobile/images/arrow_to_bottom.png"></a></li>
            </dd>
          </dl>
        </div>
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=3')?>'><span><i class='top'></i><i class="bottom"></i></span><br />
                出境</a></dt>
            <dd>
              <?php
              $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
              diy('mobile_destination_03', 'fontlist', $tpl)?>
              <li class='click'><a href='<?php echo site_url('mobile/line?cat_id=3')?>' class='hasmore'><img src="<?php echo URLPRE?>static/template/xuzhou/mobile/images/arrow_to_bottom.png"></a></li>
            </dd>
          </dl>
        </div>
      </div>
    </div>
  </section>
<!--  <div class="kaidian"><a href="#">我要开店</a></div>-->
  <style type="text/css">
    .store-tools ul li{
      width:25%;
    }
  </style>
  <footer <?php echo $_GET['id']>0? 'style="margin:0 0 50px 0"' : '';?>>
  <?php if($card_info = unserialize($_COOKIE['card_info'])){?>
      <div class="store-copy1">
          <p> <?php echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company?>(<?php echo $card_info['realname']?>)</p>
          <p> <?php echo $card_info['addr'] ? $card_info['addr']  : $company_address?></p>
          <p> <?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?></p>
      </div>
  <?php }?>
    <div class="store-copy">
      <?php
      @$user_id = $this->session->userdata('user_id');
      @$admin_user_id = $this->session->userdata('admin_user_id') ;
      if(!$user_id && !$admin_user_id){
        ?>
        <a href="<?php echo site_url('/mobile/member/login')?>">登陆</a>
        <a href="<?php echo site_url('/mobile/member/register')?>">注册</a>
      <?php }?>
      <p> 旅游许可证编号：<?php echo $licence?> <?php echo $site_record_num;?><br />
        <?php echo $company;?> 品牌授权<br>技术支持：浩楠网络科技</p>
    </div>
    <div class="store-tools">
      <ul>
        <li class="this"><a href="<?php echo site_url(INWECHAT&&$_COOKIE['from_card'] ? 'mobile/member/card/?eid='.$_COOKIE['from_card'] : 'mobile/index')?>"><i></i>
            <p> 首页</p>
          </a></li>
        <li><a href="tel:<?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><i></i>
            <p> 电话</p>
          </a></li>
        <li><a href="<?php echo site_url('mobile/member/center');?>"><i></i>
            <p> 我的</p>
          </a></li>
        <li style="display:none;"><a href="#"><i></i>
            <p> 留言</p>
          </a></li>
        <li><a href="javascript:scroll(0,0);"><i></i>
            <p> 顶部</p>
          </a></li>
      </ul>
    </div>
  </footer>
</div>
<?php echo $sharehtml?>
</body>
</html>
